export default {
	"oldPassword": {
		"rules": [{
			required: true,
			errorMessage: '请输入旧密码',
		}]
	},
	"newPassword": {
		"rules": [
			{
				required: true,
				errorMessage: '请输入新密码',
			},
			{
				minLength:6,
				maxLength:20,
				errorMessage: '密码长度在{minLength}到{maxLength}个字符',
			},
		]
	},
	"newPwd2": {
		"rules": [{
				required: true,
				errorMessage: '请重新输入新密码',
			},
			{
				validateFunction: function(rule, value, data, callback) {
					console.log(value, data.newPassword)
					if (value != data.newPassword) {
						callback('两次密码不一致')
					}
					return true
				}
			}
		]
	}
}
